package cn.com.bluemoon.daps.system.vo;

import cn.com.bluemoon.daps.common.enums.SystemType;
import cn.com.bluemoon.daps.system.entity.DapSystemInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Jarod.Kong
 * @date 2021/7/26 11:32
 */
@ApiModel(description = "简单的系统信息")
@Data
public class SimpleSysInfoVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("系统分类，1 :业务系统,2 :数仓系统,3 :数据产品,4 :其他")
    private SystemType systemType;

    @ApiModelProperty("系统id")
    private String systemId;

    @ApiModelProperty("系统名称")
    private String systemName;

    public SimpleSysInfoVo() {
    }

    public SimpleSysInfoVo(DapSystemInfo source) {
        if (source != null) {
            this.systemId = source.getId();
            this.systemName = source.getName();
            this.systemType = source.getType();
        }
    }
}
